package example2;

/**
 * <h3>designPattern</h3>
 * <p>支付结果封装类</p>
 * @author : zhang.bw
 * @date : 2020-06-05 14:41
 **/
public class PayResult {

	/**
	 * 返回码
	 */
	private String code;

	/**
	 * 成功或失败
	 */
	private boolean success;

	/**
	 * 返回信息
	 */
	private String message;

	/**
	 * 默认构造方法
	 */
	public PayResult(){}

	/**
	 * 自定义构造方法
	 * @param code
	 * @param success
	 * @param message
	 */
	public PayResult(String code,boolean success,String message){
		this.code = code;
		this.success = success;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "PayResult{" + "code='" + code + '\'' + ", success=" + success + ", message='" + message + '\'' + '}';
	}


}
